home *** CD-ROM | disk | FTP | other *** search
- #
- | public labels
- .globl begtext
- .globl begdata
- .globl begbss
- .globl _exit
- .globl _data_org
- | external references
- .globl _main
- .globl _stackpt
- #ifdef ACK
- .globl EXIT
- .globl .trpim
- .globl .trppc
- #endif ACK
- #ifdef ACK
- .text
- .data
- .bss
- #endif ACK
-
- .text
- .even
-
- begtext:
- movl _stackpt,sp
- jsr _main
- #ifdef ACK
- EXIT:
- #endif ACK
- _exit:
- jra _exit | this will never be executed
-
- .data
- .even
- begdata:
- | fs needs to know where build stuffed table
- _data_org:
- | 0xDADA is magic number for build
- .word 0xDADA,0,0,0,0,0,0,0
- #ifdef ACK
- .trpim: .word 0
- .trppc: .long 0
- #endif ACK
-
- #ifndef __GNUC__
- .bss
- begbss:
- #else
- .even
- #ifdef __MSHORT__
- .comm begbss,2 | gas does'nt have .bss, only .comm and .lcomm
- #else
- .comm begbss,4 | gas does'nt have .bss, only .comm and .lcomm
- #endif
- #endif
-